package com.myhexin.globalbroker.rwa.interfaces.rest.controller;

import com.myhexin.globalbroker.rwa.interfaces.rest.vo.BaseVo;
import com.myhexin.globalbroker.rwa.service.RwaService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @auther zhangzhonglv@myhexin.com
 * @date 2025/9/29
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/admin/api/hitrade-rwa/v1")
public class RwaController {

    private final RwaService rwaService;

    @PostMapping("/enabledChains")
    public BaseVo<List<String>> enabledChains() {
        return BaseVo.success(rwaService.queryEnabledChains());
    }
}
